package org.jeecg.modules.wms.mapper;

import org.jeecg.modules.wms.entity.WmsOutboundAllocationPlan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * 出库分配方案 Mapper 接口
 */
public interface WmsOutboundAllocationPlanMapper extends BaseMapper<WmsOutboundAllocationPlan> {
    
    /**
     * 根据出库单ID查询分配方案
     */
    List<WmsOutboundAllocationPlan> selectByOutboundId(@Param("outboundId") String outboundId);
    
    /**
     * 根据出库单ID删除分配方案
     */
    int deleteByOutboundId(@Param("outboundId") String outboundId);
    
    /**
     * 查询出库单的分配汇总信息
     */
    List<WmsOutboundAllocationPlan> selectAllocationSummary(@Param("outboundId") String outboundId);

    List<WmsOutboundAllocationPlan> selectByOutboundIdAndUpdateBy(@Param("id") String id,@Param("username") String username);
}
